package com.feign;

import com.entity.TokenEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * ClassName: TokenFeignService
 * Description: TODO
 *
 * @since JDK 1.8
 */
@FeignClient(value = "enterprise-assets-cloud-sys")
public interface TokenFeignService {
    /**
     @GetMapping("getAccount")
     public TokenEntity getCurrentUserByToken(@RequestParam("token") String token) {
     return tokenService.getTokenEntity(token);
     }
     */
    @GetMapping("/token/getAccount")
    TokenEntity getCurrentUserByToken(@RequestParam(value = "token") String token);
}